//
//  XMUploadPhotoModel.m
//  XiaoMiao
//
//  Created by 23 on 2018/2/7.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import "XMUploadPhotoModel.h"

@implementation XMUploadPhotoModel

//根据分类快速创建
+ (instancetype)uploadModelWithCateId:(NSString *)cateId subCateId:(NSString *)subCateId subSubCateId:(NSString *)subSubCateId
{
    XMUploadPhotoModel *uploadModel = [[XMUploadPhotoModel alloc] init];
    uploadModel.cateId = cateId;
    uploadModel.subCateId = subCateId;
    uploadModel.subSubCateId = subSubCateId;
    
    return uploadModel;
}

+ (instancetype)uploadModelWithCateId:(NSString *)cateId
                            subCateId:(NSString *)subCateId
                         subSubCateId:(NSString *)subSubCateId
                        baseInfoModel:(BaseInfoModel *)baseInfoModel
{
    XMUploadPhotoModel *uploadModel = [[XMUploadPhotoModel alloc] init];
    
    uploadModel.cateId = cateId;
    uploadModel.subCateId = subCateId;
    uploadModel.subSubCateId = subSubCateId;
    
    uploadModel.baseInfoModel = baseInfoModel;
    
    return uploadModel;
}

+ (instancetype)uploadModelWithCateId:(NSString *)cateId
                            subCateId:(NSString *)subCateId
                         subSubCateId:(NSString *)subSubCateId
                                  pId:(NSString *)pId
                        baseInfoModel:(BaseInfoModel *)baseInfoModel
{
    XMUploadPhotoModel *uploadModel = [[XMUploadPhotoModel alloc] init];
    
    uploadModel.cateId = cateId;
    uploadModel.subCateId = subCateId;
    uploadModel.subSubCateId = subSubCateId;
    
    uploadModel.partyId = pId;
    
    uploadModel.baseInfoModel = baseInfoModel;
    
    return uploadModel;
}

@end
